<?php
require_once("../includes/config.php");
include DIR_INCLUDES_FT.'bootstrap.php';
header('Content-type: text/html; charset=utf-8');
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pt" lang="pt" dir="ltr">
    <head>
        <?require(DIR_FT."header.php");?>
        <script type="text/javascript">
            $(document).ready(function(){
                $("#contagens_form").validate({});
            });
        </script>
    </head>
	<body>
	<?php require_once(DIR_MENUS_FT."menu.php");?>
	<div id="main_div">
		<form enctype="multipart/form-data" accept-charset="utf-8" id="contagens_form" action="contagens_init_edit.php" method="post">
			<input type="hidden" name="id" value="<?=$contagem->id?>"/>
			<fieldset id="form-area">
				<legend><?=CONTAGEM?></legend>
				<label for="loja"><?=LOJA?>:</label>
				<select name="loja" id="loja" class="required">
					<option value="" selected="selected"><?=SELECCIONE_LOJA?></option>
					<?$lojas = Doctrine_Query::create()->from("Lojas l")->innerJoin("l.Clientes c")->execute();
					foreach ($lojas as $loja){?>
						<option value="<?=$loja->id?>"><?=$loja->Clientes->nome." - ".$loja->nome." - ".$loja->morada?></option>
					<?}?>
				</select>
                                <input type="submit" name="submit" value="<?=CONTINUAR?>" class="submit-button"/>
			</fieldset>
		</form>
	</div>
	<?require(DIR_FT."footer.php");?>
	</body>
</html>